package com.fourth.shopping.service;



import com.fourth.shopping.commons.TableData;
import com.fourth.shopping.entity.Item;
import com.fourth.shopping.vo.PageCondition;

import java.util.List;

public interface ItemService {
    List<Item> getAllItems();

    TableData<Item> getItemsAsPage(PageCondition condition);

    Boolean addNewItem(Item item);

    Boolean deleteItem(Integer id);

    void modifyItem(Item item);

    Item getItemById(String id);
}
